x86: properly parenthesize {read,write}_atomic()
authorJan Beulich <jbeulich@suse.com>
Thu, 26 Mar 2015 10:05:49 +0000 (11:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 26 Mar 2015 10:05:49 +0000 (11:05 +0100)
commitcce7087d01c90d9e6607ba08222781d9e69baf2f
tree23d5c9c6d1c48dc6bc6694aa7d02c506cdfc40b0
parent1f67e20b8c44f2e8cb2b7ac68fc4aee6500391a6
x86: properly parenthesize {read,write}_atomic()

... at once eliminating some redundancy from the read variant (the cast
to the destination type can be done once outside the switch).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/atomic.h